package com.edu.backend.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.edu.backend.entity.Admin;
import com.edu.backend.entity.AdminDTO;
import com.edu.backend.entity.User;

/**
 * @Author: yanjunfeng
 * @Description: TODO
 * @Date: Created in 上午11:08 2023/6/19
 * @Modified By:
 */
public interface AdminService extends IService<Admin> {
    String login(Admin admin);


   AdminDTO getAdminInfo(String token);
    public Boolean updateAdmin(Admin admin);
    public Integer updateAvatarById(String avater,Integer id);

    void logout(String token);
    public Admin getAdmin(Integer id);
}
